import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件


// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch((err) => err)
}




const routes = [
    {
        path:"/index",
        component:()=>import('../views/index.vue') ,
		children: [
		         {
					path: "/PostProcessVolume*",
					component:() =>import('../views/PostProcessVolume/index.vue')
		       },{
				   path:'/index2',
				   component:() =>import('../views/Bp_Sky_Sphere')
			   }
			   ,{
				   path:'/LightSource3',
				   name:'LightSource2',
				   component:() =>import('../views/lightSource')
			   },
			   {
				   path:'/index4',
				  
				   component:()=>import('../views/InQuiry')
			   },
			   {
				   path:'/PostProcess*',
				  
				   component:()=>import('../views/PostProcessVolume/index.vue')
			   },
			   {
				   path:'/server',
				  
				   component:()=>import('../components/inputIp.vue')
			   },{
				   path:'/BP_Sky_Sphere*',
				   component:() =>import('../views/Bp_Sky_Sphere')
			   },
			   {
				   path:'/LightSource*',
				   name:'LightSource',
				   component:() =>import('../views/lightSource')
			   },
	{
				   path:'/index5',
				   
				   component:() =>import('../views/PostProcessVolume/index.vue')
			   },{
				   path:'/DirectionalLight*',
				   
				   component:() =>import('../views/lightSource')
			   },	
				{
					path:'/BodyMap',
					component:() =>import('../components/BodyMap.vue')
				},
				{
					path:'/Blankpage',
					name:'Blankpage',
					component:() =>import('../components/Blankpage.vue')
				},
				{
					path:'/PlayTime',
					component:() =>import('../components/topandmiddle.vue')
				},
				{
					path:'/PlaySetup',
					component:() =>import('../components/videoplayerlist.vue')
				},
		]
    },
	{
	        path: '/', 
	        redirect: '/server' 
	    }
	
    
]

var router =  new VueRouter({
    routes
})

export default router;



















